package com.iran.state.test;

import java.util.Date;

public class DiaoYeWork {
    private AbstractState state;
    private String working;
    private Date time;

    public DiaoYeWork() {
        this.state = new DiaoYeThinking();
    }

    public void setState(AbstractState state) {
        this.state = state;
    }

    public String getWorking() {
        return working;
    }

    public void setWorking(String working) {
        this.working = working;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    //调用
    public void request(){
        state.handle(this);
    }
}
